package com.lglbc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/6/17
 * @Description
 */


@FeignClient("storage-service")
public interface StorageService {

    @PostMapping(path = "/storage/{code}/{count}")
    boolean storage(@PathVariable("code") String userId,
                   @PathVariable("count") int count);

}


